//
//  Common.h
//  GoldOperationClient
//
//  Created by yaxue wang on 16/8/4.
//  Copyright © 2016年 展鸿科技. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Common : NSObject
+ (void)makePhoneWith:(NSString*)string;
+ (void)setSearchBarStyle:(UISearchBar *)searchBar;
+ (UITextField *)getSearchBarTextField:(UISearchBar *)searchBar;
+(CGRect)computeRect:(NSString *)text Font:(NSInteger)fontSize;
+ (CGFloat)getLabelHeight:(CGFloat)height Width:(CGFloat)width String:(NSString *)str;
//检测是否是手机号码
//+ (BOOL)isMobileNumber:(NSString *)mobileNum;
//17位随机数
+ (NSString *)createFileName:(NSString *)suff;
+ (NSString *)marshalWithType:(NSString*)type;
//七牛上传凭证
+ (NSString *)makeToken:(NSString *)accessKey secretKey:(NSString *)secretKey type:(NSString*)type;
//上传
+ (void)uploadImageToQNFilePath:(NSString *)filePath withMine:(NSString*)type ;
+(void)uploadDataWithData:(NSData*)data type:(NSString*)type;;
+ (NSString*)dictionaryToJson:(NSDictionary *)dic;
+ (NSDictionary *)dictionaryWithJsonString:(NSString *)jsonString;
+ (NSString *)getDateTimeString;
+ (NSString *)randomStringWithLength:(int)len;
//创建文件夹
+ (void)createDirectoryWith:(NSString *)path;
@end
